﻿<%@ Page Language="C#" MasterPageFile="~/Scores/MasterPage.master" AutoEventWireup="true" CodeFile="ScoresAdd.aspx.cs" Inherits="Scores_ScoresAdd" Title="无标题页" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <ext:Store ID="StoreCompany" OnRefreshData="StoreCompany_OnRefreshData" runat="server">
    <Reader>
        <ext:JsonReader ReaderID="companyid">
            <Fields>
                <ext:RecordField Name="companyid" Type="String"></ext:RecordField>
                <ext:RecordField Name="companyname" Type="String"></ext:RecordField>
                <ext:RecordField Name="companyaddress" Type="String"></ext:RecordField>
                <ext:RecordField Name="electricname" Type="String"></ext:RecordField>
                <ext:RecordField Name="tradename" Type="String"></ext:RecordField>
                <ext:RecordField Name="deptname" Type="String"></ext:RecordField>
                <ext:RecordField Name="credit" Type="String"></ext:RecordField>
                <ext:RecordField Name="scores" Type="Int"></ext:RecordField>
            </Fields>
        </ext:JsonReader>
    </Reader>
     <AutoLoadParams>
         <ext:Parameter Name="start" Mode="Raw" Value="0" />
         <ext:Parameter Name="limit" Mode="raw" Value="10" />
     </AutoLoadParams> 
    </ext:Store>
  
    <ext:ViewPort ID="ViewPort1" runat="server">
        <Body>
              <ext:ColumnLayout ID="ColumnLayout1" runat="server" Split="true" FitHeight="true">
                <Columns>
                 <ext:LayoutColumn ColumnWidth="0.50">
                    <ext:GridPanel ID="GridPanel1" StoreID="StoreCompany" runat="server">
                    <ColumnModel>
                        <Columns>
                            <ext:Column ColumnID="companyid"  Header="户号" DataIndex="companyid" ></ext:Column>
                            <ext:Column ColumnID="companyname" Header="户名" DataIndex="companyname"></ext:Column>
                            <ext:Column ColumnID="tradename" Header="行业类别" DataIndex="tradename"></ext:Column>
                            <ext:Column ColumnID="electricname" Header="用电类别" DataIndex="electricname"></ext:Column>
                            <ext:Column ColumnID="scores" Header="信用分数" DataIndex="scores"></ext:Column>
                            <ext:Column ColumnID="credit" Header="信用等级" DataIndex="credit"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">
                            <AjaxEvents>
                                <RowSelect OnEvent="RowSelect" Buffer="250">
                                    <EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{FormPanel1}" />
                                    <ExtraParams>
                                        <%-- or can use params[2].id as value --%>
                                        <ext:Parameter Name="companyid" Value="this.getSelected().id" Mode="Raw" />                                         
                                    </ExtraParams>
                                </RowSelect>
                            </AjaxEvents>
                        </ext:RowSelectionModel>
                    </SelectionModel>
                    <BottomBar>
                        <ext:PagingToolBar 
                            ID="PagingToolBar1" 
                            runat="server" 
                            PageSize="10" 
                            StoreID="StoreCompany" 
                            />
                    </BottomBar>
                    </ext:GridPanel>
                </ext:LayoutColumn>
                    
                    <ext:LayoutColumn ColumnWidth="0.50">
                    <ext:FormPanel ID="FormPanel1" AutoScroll="true" runat="server" BodyStyle="padding:5px;" ButtonAlign="Right"
                        Frame="true" >
                        <Body>
                            <ext:FormLayout ID="FormLayout1" runat="server" LabelWidth="180">
                                <ext:Anchor>
                                    <ext:Hidden runat="server" ID="tfcompanyid"></ext:Hidden>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField1" 
                                     MaxValue="1" 
                                     Text="1"  
                                     Note="<b>指标说明</b>:政府鼓励、区域性鼓励或是限制性行业。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：1%"
                                     FieldLabel="产业政策"></ext:NumberField>
                                </ext:Anchor> 
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField2" 
                                     MaxValue="1" 
                                     Text="1"  
                                     Note="<b>指标说明</b>: 国家重点、区域性重点或是无竞争力的弱小产业。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：1% "
                                     FieldLabel="支柱产业"></ext:NumberField>
                                </ext:Anchor>
                                
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField3" 
                                     MaxValue="1" 
                                     Text="1"  
                                     Note="<b>指标说明</b>:导入、成长、成熟或衰退期 。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：1% "
                                     FieldLabel="行业生命周期"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField4" 
                                     MaxValue="1" 
                                     Text="1"
                                     Note="<b>指标说明</b>: 国际（国内）领先、基本达到、落后或是已被淘汰。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：1% "
                                     FieldLabel="和国外的差距"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField5" 
                                     MaxValue="1" 
                                     Text="1"  
                                     Note="<b>指标说明</b>:具有专利技术、特许权或是完全竞争 。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：1% "
                                     FieldLabel="行业进入壁垒"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField6" 
                                     MaxValue="2" 
                                     Text="2"  
                                     Note="<b>指标说明</b>:负债总额/资产总额。<br><b>指标类型</b>：倒U型。<br><b>适度区间</b>：65%—85%。<br><b>权重</b>：2% "
                                     FieldLabel="资产负债率"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField7" 
                                     MaxValue="3" 
                                     Text="3"  
                                     Note="<b>指标说明</b>:流动资产/流动负债。<br><b>指标类型</b>：倒U型。<br><b>适度区间</b>：100%—150%。<br><b>权重</b>：3% "
                                     FieldLabel="流动比率"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField8" 
                                     MaxValue="3" 
                                     Text="3"
                                     Note="<b>指标说明</b>:利润总额/平均总资产。<br><b>指标类型</b>：线性。<br><b>适度区间</b>：1%—2%。<br><b>权重</b>：3% "  
                                     FieldLabel="资产利润率"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField9" 
                                     MaxValue="2" 
                                     Text="2"
                                     Note="<b>指标说明</b>:当期归还银行贷款数额/当期累计应归还银行贷款数额。<br><b>指标类型</b>：线性。<br><b>适度区间</b>：80%—95%。<br><b>权重</b>：2% "   
                                     FieldLabel="贷款按期偿还率"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField10" 
                                     MaxValue="5" 
                                     Text="5" 
                                     Note="<b>指标说明</b>:客户的月用电量。<br><b>指标类型</b>：线性。<br><b>适度区间</b>：无。<br><b>权重</b>：5% "   
                                     FieldLabel="企业用电量"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField11" 
                                     MaxValue="25" 
                                     Text="25"
                                     Note="<b>指标说明</b>:提前、准时、延迟三天以内或以上。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：25% "  
                                     FieldLabel="是否按时缴纳电费"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField12" 
                                     MaxValue="10" 
                                     Text="10" 
                                     Note="<b>指标说明</b>:客户的累计欠费额。<br><b>指标类型</b>：线性。<br><b>适度区间</b>：无。<br><b>权重</b>：10% "   
                                     FieldLabel="欠费数额"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField13" 
                                     MaxValue="25" 
                                     Text="25"  
                                     Note="<b>指标说明</b>:无窃电、有且在1万元以下、有且在1万元以上。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：25% "
                                     FieldLabel="有无违章窃电行为及金额"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField14" 
                                     MaxValue="3" 
                                     Text="3"  
                                     Note="<b>指标说明</b>:有且达到国家标准，有但未达到标准，没有。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：3% "
                                     FieldLabel="是否有无功补偿装置"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField15" 
                                     MaxValue="4" 
                                     Text="4"  
                                     Note="<b>指标说明</b>:按标准定期校验，没有定期校验，基本没有校验。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：4% "
                                     FieldLabel="是否定期进行设备校试"></ext:NumberField>
                                </ext:Anchor>
                                
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField16" 
                                     MaxValue="3" 
                                     Text="3" 
                                     Note="<b>指标说明</b>:基本没有事故，有事故但对主网影响小，有事故且对主网影响大。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：3% " 
                                     FieldLabel="设备事故是否对主网造成重大影响"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                     <ext:NumberField runat="server"  AllowBlank="false" 
                                     ID="NumberField17" 
                                     MaxValue="10" 
                                     Text="10" 
                                     Note="<b>指标说明</b>:企业社会信誉度好、一般、差。<br><b>指标类型</b>：定性。<br><b>适度区间</b>：自定义。<br><b>权重</b>：10% " 
                                     FieldLabel="社会信誉度"></ext:NumberField>
                                </ext:Anchor>
                                <ext:Anchor>
                                    <ext:FileUploadField ID="FileUploadField1" Width="200" FieldLabel="附件" runat="server">
                                    </ext:FileUploadField>
                                </ext:Anchor>
                                <ext:Anchor>
                                    <ext:Label ID="Label2" runat="server" FieldLabel="注意" Text="如果有支持以上各项评价的相关证明文件请统一打包压缩作为附件上传，方便审核。建议以说明性文字作为附件文件名。为节约服务器空间，附件仅支持.zip和.rar文件格式"></ext:Label>
                                </ext:Anchor>
                            </ext:FormLayout>
                        </Body>
                        <Buttons>
                            <ext:Button ID="Button1" runat="server" Icon="Disk" Text="提交">
                            <AjaxEvents>
                                <Click OnEvent="SubChengxin"></Click>
                            </AjaxEvents>
                            </ext:Button>
                        </Buttons>
                    </ext:FormPanel>
               </ext:LayoutColumn>
                 </Columns>
            </ext:ColumnLayout>
        </Body>
    </ext:ViewPort>
</asp:Content>

